import request from '@/utils/request'

// 查询产品耗材列表
export function listProductConsumables(data) {
  return request({
    url: '/factor/productConsumables/list',
    method: 'post',
    data: data
  })
}

// 查询产品耗材详细
export function getProductConsumables(id) {
  return request({
    url: '/factor/productConsumables/' + id,
    method: 'get'
  })
}

// 新增产品耗材
export function addProductConsumables(data) {
  return request({
    url: '/factor/productConsumables',
    method: 'post',
    data: data
  })
}

// 修改产品耗材
export function updateProductConsumables(data) {
  return request({
    url: '/factor/productConsumables',
    method: 'put',
    data: data
  })
}

